<%--
  Created by IntelliJ IDEA.
  User: WS
  Date: 2020/5/25
  Time: 16:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
当前用户:<s:property value="#session.LOGONUSER.username"/>
<table>
    <tr>
        <th>id</th>
        <th>名称</th>
        <th>年龄</th>
        <th>注册日期</th>
        <th>操作</th>
    </tr>
    <s:iterator value="#request.UserList" var="status">
        <tr>
            <td><s:property value="#status.id"/></td>
            <td><s:property value="#status.username"/></td>
            <td><s:property value="#status.age"/></td>
            <td><s:property value="#status.registerDate"/></td>
            <td>
                <s:url id="edit" action="edit">
                    <s:param name="user.id" value="#status.id"></s:param>
                </s:url>
                <s:url id="delete" action="delete">
                    <s:param name="user.id" value="#status.id"></s:param>
                </s:url>
                <s:a href="%{edit}">修改</s:a>
                <s:a href="%{delete}">删除</s:a>
            </td>
        </tr>
    </s:iterator>
</table>
</body>
</html>
